libxl: refactor libxl_get_memory_target
authorWei Liu <wei.liu2@citrix.com>
Tue, 16 Sep 2014 10:01:14 +0000 (11:01 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 17 Sep 2014 18:59:33 +0000 (19:59 +0100)
commit6c0e7d1032363beb308c8ad11ce6c107cf047e26
tree9974357dc095bf085c04feeb905216182a9a2020
parent577314768b430107845023d7e489ed0dd53892ad
libxl: refactor libxl_get_memory_target

Introduce a helper function which can return both "target" node and
"static-max" node of a domain. Reimplement libxl_get_memory_target using
this helper. libxl__fill_dom0_memory_info is adjusted as well.

This helper will be used in later patch.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c